package com.ada.apps;

import java.io.IOException;

import com.ada.iwan.utils.RpcUtils;
import com.ada.user.entity.UserInfo;
import com.ada.user.service.UserInfoService;

import jxl.read.biff.BiffException;

public class UserApps {

	public static void main(String[] args) throws BiffException, IOException {
		UserInfoService service = RpcUtils.get(UserInfoService.class);

		UserInfo str = new UserInfo();
		str.setUsername("18681884858");
		str.setPhone("18681884858");
		str.setName("沈毅");
		str.setRealName("沈毅");
		str.setEmail("shenyi@ccnc.cc");
		str.setPlainPassword("ccnc.cc123");
		System.out.println(str);
		UserInfo u = service.reg(str);
		try {
			System.out.println(u.getId());
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}
